#include <iostream>
#include "BB.h"
using namespace std;

//静态成员函数不能调用普通成员变量和成员方法

int main01(int argc, char const *argv[]){
        BB b1, b2, b3;
        
        cout<<"c = "<<b1.getC()<<endl;

        b2.addC();

        cout<<"c = "<<b3.getC()<<endl;

        cout<<"c = "<<BB::getC()<<endl;

        return 0;
}

int main(int argc, char const *argv[]){
        BB b1(1, 2);
        b1.print(); //===========print(&b1);
        return 0;
}
